<extend name="Public/base" />
<block name="head">
</block>
<block name="body">
<div class="m-tab s-tab">
	<h2 class="u-tt">角色管理</h2>
	<ul>
		<li><a href="{:U('index')}">角色列表</a></li>
		<li class="z-crt"><a href="javascript:;">{$actionName}角色</a></li>
	</ul>
</div>
<div class="m-form">
	<form name="" action="{:U($action)}" method="post" id="form">
		<fieldset>
			<div class="formitm">
				<label class="lab">角色名称：</label>
				<div class="ipt">
					<input name="title" type="text" class="u-ipt u-ipt-5" id="title" value="{$info.title}" maxlength="18" datatype="s2-18" errormsg="角色名称至少2个字符,最多18个字符！" placeholder="角色名称"/>
					<p></p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">角色描述：</label>
				<div class="ipt">
					<textarea name="description" id="description" class="u-tta u-tta-6" placeholder="角色描述">{$info.description}</textarea>
					<p></p>
				</div>
			</div>
			<div class="formitm">
				<label class="lab">状态：</label>
				<div class="ipt"><php>!isset($info['status']) ? $info['status'] : 1;</php>
					<label class="u-opt"><input name="status" type="radio" value="1" <if condition="$info['status'] == 1">checked</if>/>启用</label>
				  	<label class="u-opt"><input name="status" type="radio" value="0" <if condition="$info['status'] == 0">checked</if>/>禁用</label>
				</div>
			 </div>		
			<div class="formitm formitm-1  formitm-2">
				<input name="id" type="hidden" value="{$info.id}" />
				<button class="u-btn" type="submit">保存</button>
				<button class="u-btn s-btn-c3" type="reset">重置</button>
				<span class="status" id="status"></span> </div>
		</fieldset>
	</form>
</div>
<script>
Do.ready('base','form','dialog',function() {
	$('#form').duxForm({
		returnUrl:'{:U('index')}'
	});
});
</script>
</block>